package com.lzx.dto;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.util.Date;

/**
 * @Author: lzx
 * @Date: 2021/4/9 16:07
 */
@Data
@Document(indexName = "users")
public class UserDto {
    @Id
    @Field(type = FieldType.Integer)
    private Integer id;
    @Field(type = FieldType.Text)
    private String email;
    @Field(type = FieldType.Text)
    private String name;
    @Field(type = FieldType.Keyword)
    private String phone;
    @Field(type = FieldType.Date)
    private Date createtime;
    @Field(type = FieldType.Text)
    private String username;
    @Field(type = FieldType.Boolean)
    private Boolean status;
}
